package cn.northsea.mapper;

import cn.northsea.entity.SeekDz;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DzMapper extends BaseMapper<SeekDz> {
    @Select("select * from seek_dz where uid=#{formid} and toid=#{toid}")
    List<SeekDz> findByformIdtoid(@Param("formid") Integer formid, @Param("toid") Integer toid);
    @Insert("insert into seek_dz values (null,#{uid},#{toid},#{tousername},#{uname})")
    void save1(SeekDz seekDz);
    @Insert("insert into seek_dz values (null,#{toid},#{uid},#{uname},#{tousername})")
    void save2(SeekDz seekDz);
}
